<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--  <title>图书管理系统</title>-->
  <title>学生管理系统</title>
  <link rel="stylesheet" href="css/styles.css">
  <script src="js/axios.min.js"></script>
</head>
<body>
<div class="container">
<!--  <h1>图书管理系统</h1>-->
  <h1>博客管理系统</h1>
  <div class="search-add-section">
<!--    <input type="text" id="search-box" placeholder="搜索图书书名...按回车开始搜索">-->
    <input type="text" id="search-box" placeholder="搜索博客标题...按回车开始搜索">
<!--    <button id="add-btn">添加图书</button>-->
    <button id="add-btn">添加博客</button>
  </div>
  <table id="table">
    <thead>
    <tr>
      <th>ID</th>
<!--      <th>书名</th>-->
      <th>标题</th>
<!--      <th>作者</th>-->
      <th>作者</th>
<!--      <th>出版商</th>-->
      <th>文本</th>
      <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <!-- 列表将动态填充 -->
    </tbody>
  </table>
  <div id="item-form-modal" class="modal">
    <div class="modal-content">
      <span class="close-btn" id="close-form-btn">&times;</span>
      <h2 id="form-title">添加博客</h2>
      <form id="item-form">
        <input type="hidden" id="studentId">
<!--        <label for="item-name">书名:</label>-->
        <label for="studentName">标题:</label>
        <input type="text" id="studentName" required>
<!--        <label for="author">作者:</label>-->
<!--        <input type="text" id="author" required>-->
        <label for="classname">作者:</label>
        <input type="text" id="classname" required>
<!--        <label for="publisher">出版商:</label>-->
<!--        <input type="text" id="publisher" required>-->
        <label for="classTeacher">文本:</label>
        <input type="text" id="classTeacher" required>
        <button type="submit">保存</button>
      </form>
    </div>
  </div>
</div>
<script src="js/data.js"></script>
</body>
</html>